﻿<Window x:Class="ManagerWpf.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:Controls="clr-namespace:ManagerWpf.Controls"
		Title="GShield Manager" Height="500" Width="700"
		Background="{DynamicResource MainBackgroundBrush}"
		ResizeMode="NoResize">

	<DockPanel>
		<!-- Header Area-->
		<Border Height="50" DockPanel.Dock="Top" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1" x:Name="HeaderBorder" Padding="10,0,10,0" >
			<DockPanel x:Name="Header" >
			</DockPanel>
		</Border>

		<!-- Menu Area -->
		<Border x:Name="MenuBorder" VerticalAlignment="Top" DockPanel.Dock="Top" Margin="0,5,0,5">
			<Menu VerticalAlignment="Bottom" Margin="5,0,0,0" Style="{DynamicResource MenuStyle}">
				<MenuItem Header="_New" x:Name="NewMenu" Command="New" Style="{DynamicResource MenuItemStyle}"/>
				<MenuItem Header="_Open" x:Name="OpenMenu" Style="{DynamicResource MenuItemStyle}"/>
				<MenuItem Header="_Save" x:Name="SaveMenu" Style="{DynamicResource MenuItemStyle}">
					<MenuItem Header="Save" Command="Save"/>
					<MenuItem Header="Save As..." Command="SaveAs"/>
					<MenuItem Header="Save to XPS..." Command="local:MainWindow.ExportXpsCommand"/>
				</MenuItem>
				<MenuItem Header="_GEDCOM" x:Name="GedcomMenu" Style="{DynamicResource MenuItemStyle}">
					<MenuItem Header="Import..." Command="local:MainWindow.ImportGedcomCommand" />
					<MenuItem Header="Export..." Command="local:MainWindow.ExportGedcomCommand" />
					<MenuItem Header="What is GEDCOM?" Command="local:MainWindow.WhatIsGedcomCommand" />
				</MenuItem>
				<MenuItem Header="S_kins" x:Name="SkinsMenu" Style="{DynamicResource MenuItemStyle}"/>
			</Menu>
		</Border>

		<Grid x:Name="MainGrid" Grid.IsSharedSizeScope="True" DockPanel.Dock="Top" >

			<!-- Welcome User Control -->
			<Controls:Welcome x:Name="WelcomeUserControl" HorizontalAlignment="Center" VerticalAlignment="Center" />


		</Grid>

	</DockPanel>
</Window>
